//
//  WCStringToURLTransformer.m
//  WabbitCode
//
//  Created by William Towe on 1/20/09.
//  Copyright 2009 Revolution Software. All rights reserved.
//

#import "WCStringToURLTransformer.h"


@implementation WCStringToURLTransformer
+ (Class)transformedValueClass { return [NSURL class]; }
+ (BOOL)allowsReverseTransformation { return YES; }
- (id)transformedValue:(id)value {
    return [NSURL fileURLWithPath:(value == nil)?@"":value];
}
- (id)reverseTransformedValue:(id)value {
	return [value path];
}
@end
